package com.rf.richfitwheel.admin.sys.dao;

import com.rf.richfitwheel.admin.sys.model.StationMenu;
import com.rf.richfitwheel.admin.sys.model.StationMenuExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface StationMenuMapper {
    long countByExample(StationMenuExample example);

    int deleteByExample(StationMenuExample example);

    int deleteByPrimaryKey(String id);

    int insert(StationMenu record);

    int insertSelective(StationMenu record);

    List<StationMenu> selectByExample(StationMenuExample example);

    StationMenu selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") StationMenu record, @Param("example") StationMenuExample example);

    int updateByExample(@Param("record") StationMenu record, @Param("example") StationMenuExample example);

    int updateByPrimaryKeySelective(StationMenu record);

    int updateByPrimaryKey(StationMenu record);

    /**
     * 根据岗位id删除数据
     * @param stationId
     */
	void deleteByStationId(String stationId);

	/**
	 * 根据岗位id和租户id删除数据
	 * @param param
	 */
	void deleteByStationIdAndTenantId(Map<String, Object> param);
}